import request from '@/utils/request'

// 查询出库单列表
export function listOutbound(query) {
  return request({
    url: '/reserve/outbound/list',
    method: 'post',
    data: JSON.parse(JSON.stringify(query))

  })
}

// 查询出库单详细
export function getOutbound(outboundEntryId) {
  return request({
    url: '/reserve/outbound/' + outboundEntryId,
    method: 'get'
  })
}

// 新增出库单
export function addOutbound(data) {
  return request({
    url: '/reserve/outbound/add',
    method: 'post',
    data: data
  })
}

// 修改出库单
export function updateOutbound(data) {
  return request({
    url: '/reserve/outbound/update',
    method: 'put',
    data: data
  })
}

// 删除出库单
export function delOutbound(outboundEntryId) {
  return request({
    url: '/reserve/outbound/' + outboundEntryId,
    method: 'delete'
  })
}

//根据id查询物品明细表
export function selectDetails(warehousingEntryId) {
  return request({
    url: "/system/notice/whdetailed",
    method: "post",
    data: JSON.parse(JSON.stringify(warehousingEntryId)),
  });
}